﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Gerencial_Fisio_Nutry.Tela
{
    public partial class MovimentoDiario : Form
    {
        public MovimentoDiario()
        {
            InitializeComponent(); carregar();
        }
        public void carregar()
        {
            dgVGeral.DataSource = new Banco.MetodoBanco().MovimentoDoDia(DateTime.Now.ToShortDateString());
        }

        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            dgVGeral.DataSource = new Banco.MetodoBanco().MovimentoDoDia(dateTimePicker1.Value.ToShortDateString());
        }
    }
}
